import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service
//======================审核=======================
//==========合同申请7014  合同签订7015   合同变更申请7016    合同变更签订7017    合同终止7018==============
const request = {
    //提交审核
    commitAudit (params) {
        return httpPost({
            url: '/subcontract/audit/commitAudit',
            params: params
        })
    },
    //发起审核
    audit (params) {
        return httpPost({
            url: '/subcontract/audit/audit',
            params: params
        })
    },
    //获取审核历史
    getAuditHistory (params) {
        return httpPost({
            url: '/subcontract/audit/getAuditHistory',
            params: params
        })
    },
    //获取流程
    getUnitInfoByBillId (params) {
        return httpPost({
            url: '/subcontract/audit/getUnitInfoByBillId',
            params: params
        })
    },
    //作废
    nullify (params) {
        return httpPost({
            url: '/subcontract/audit/nullify',
            params: params
        })
    },
    //单步撤回
    undoAudit (params) {
        return httpPost({
            url: '/subcontract/audit/undoAudit',
            params: params
        })
    },
}

export default request
